package top.hjcwzx.wrench.limiter.enums;

import com.google.common.hash.Funnel;

//限流算法策略
public enum AlgorithmStrategyEnum {

    /**
     * 令牌桶算法
     */
    TOKEN_BUCKET("token-bucket","令牌桶算法"),
    /**
     * 漏斗算法
     */
    LEAKY_BUCKET("leaky-bucket","漏斗算法");

    private final String type;
    private final String name;

    AlgorithmStrategyEnum(String type,String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return type;
    }
    public String getName() {
        return name;
    }
}
